import request from "../utils/request";
import api from "./index";

export function queryNeedSurvey(keyword,answererid){
  const data = {
    keyword:keyword,
    answererId:answererid
  }
  return request({
    url:api.queryNeedSurvey,
    method:'post',
    data
  })

}

export function showSurvey(surveyid){
  const data = {
    id:surveyid
  }
  return request({
    url:api.showSurvey,
    method:'post',
    data
  })

}
export function visitorAnswerSurvey(surveyId,answerContext){
  const data = {
    surveyId:surveyId,
    answers:answerContext
  }
  return request({
    url:api.visitorAnswerSurvey,
    method:'post',
    data
  })
}
